package com.egao.api.controller;

import com.egao.api.base.BaseApiController;
import com.egao.common.core.web.JsonResult;
import com.egao.common.system.entity.User;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 车辆出车率 信息操作处理
 * 
 * @author ruoyi
 * @date 2019-03-21
 */
//@RestController
//@RequestMapping("/api/test")
/*@Api(value = "TestController",tags = {"测试使用"})*/
public class TestController extends BaseApiController {

	/**
	 * 修改个人信息
	 */
	@ApiOperation(value = "接口的功能介绍show",notes = "提示接口使用者注意事项",httpMethod = "POST")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "id",value = "用户ID",paramType = "path",dataType = "String",required = true),
			@ApiImplicitParam(name = "name",value = "用户名称",paramType = "form",dataType = "String",required = true)
	})
	@PostMapping("/show")
	@ResponseBody
	public JsonResult show(User user, HttpServletRequest request) {
		System.out.println("1111======");
		System.out.println("1111======");
		System.out.println("1111======");
		System.out.println("1111======");
		return JsonResult.ok("show()");
	}

	/**
	 * 修改个人信息
	 */
	/*@PostMapping("/testc")
	@ResponseBody
	public JsonResult testc(User user, HttpServletRequest request) {
		System.out.println("22222======");
		System.out.println("22222======");
		System.out.println("22222======");
		System.out.println("22222======");
		return JsonResult.ok("testc()");
	}
*/

}
